package fitness

import (
	"fitness/internal/service/fitness"
	"fitness/pkg/middleware"
)

type ControllerContainer struct {
	DetailController *DetailController
	UserController   *UserController
}

func NewFitnessControllerContainer(serviceContainer *fitness.ServiceContainer, rbac *middleware.MiddlewareContainer) *ControllerContainer {
	detailController := NewDetailController(serviceContainer.DetailService, rbac.Rbac)
	userController := NewUserController(serviceContainer.UserService, rbac.Rbac)
	return &ControllerContainer{
		DetailController: detailController,
		UserController:   userController,
	}
}
